<div id="menu-nav">
	<div id="nav">
		<ul>
        <?php
            echo '<li class="first">' . anchor('/','Dashboard') . '</li>';
            echo '<li class="parent-li">' . anchor(base_url().uri_string().'?#','Inventory');
            echo '<ul class="submenu">';
            if(isset($_SESSION['branch']) && $_SESSION['branch'] == '00HO00'){
                echo '<li>' . anchor('/inventory/settingor','Default Ref for OR') . '</li>';
                echo '<li>' . anchor('/inventory/settingdv','Default Ref for DV') . '</li>';
            }
                echo '<li>' . anchor('/inventory/stocklist','Stock List') . '</li>';
                echo '<li>' . anchor('/inventory/itemlist','Used Items') . '</li>';
            echo '</ul>';
            echo '</li>';
            
            echo '<li class="parent-li">' . anchor(base_url().uri_string().'?#','Report');
            echo '<ul class="submenu">';
            if(isset($_SESSION['branch']) && $_SESSION['branch'] == '00HO00'){
                echo '<li>' . anchor('/report/itemlist/1','in stock items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/2','used items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/3','broken items') . '</li>';
            }else{
                echo '<li>' . anchor('/report/itemlist/1','in stock items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/2','used items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/3','broken items') . '</li>';
            }
            echo '</ul>';
            echo '</li>';
            
            echo '<li class="parent-li">' . anchor(base_url().uri_string().'?#','Setting');
            echo '<ul class="submenu">';
                echo '<li>' . anchor('/cmladmin/contractlist','Manage Contract Type') . '</li>';
                echo '<li>' . anchor('/cmladmin/printlist','Manage Printing Type') . '</li>';
                echo '<li>' . anchor('/cmladmin/locationlist','Manage Location') . '</li>';
            echo '</ul>';
            echo '</li>';    
        ?>  
        </ul>
	</div>
</div>